import http from '@/plugins/axios'

export function getCustomerServiceExamScoresList(data) {
  return http({
    method: 'POST',
    url: '/ykf/cusSerScore/page',
    data
  })
}

export function getCusSerList() {
  return http({
    method: 'POST',
    url: '/sys/user/cusSerList',
    data: {
      condition: {},
      page: {
        index: 1,
        size: 999999999999
      },
      sort: { order: '', sidx: '' }
    }
  }).then(res => {
    return res.list || []
  })
}

export function addCustomerServiceExamScores(data) {
  return http({
    method: 'POST',
    url: '/ykf/cusSerScore/save',
    data
  })
}

export function updateCustomerServiceExamScores(data) {
  return http({
    method: 'POST',
    url: '/ykf/cusSerScore/update',
    data
  })
}

export function removeCustomerServiceExamScores(data) {
  return http({
    method: 'POST',
    url: '/ykf/cusSerScore/delete',
    data
  })
}
